import 'package:flutter/material.dart';

class TextWdigetPage extends StatelessWidget {
  String title;
  TextWdigetPage({String title = "标题"}) :title = title {}

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text(title),
      ),
      body: new Center(
        child: new FlatButton(onPressed: () {
          Navigator.pop(context, "携带参数");
//          Navigator.popAndPushNamed(context, 'listview_builder_page');
        }, child: new Text("return")),
      ),
    );
  }

}
